## Explaining Attitudes Toward Immigration: The Role of Regional Context and Individual Predispositions
## Readme file for analysis files
## Johannes Karreth
## Last updated 2015/09/02

####################################
## Structure of the analyses files
####################################

# Place the following files in your working directory:
# - Data for country-level analyses: "ESS1_country.csv"
#   Source: European Social Survey (see online appendix for details)
# - Data for region-level analyses: "ESS1-4_de-at-ch_region.csv"
#   Source: European Social Survey (see online appendix for details)
# - Shape file directory for maps: "de-at-ch_shape.zip" (unzip before running this script)
#   Source: Max Berger (see readme.txt within de-at-ch_shape.zip for details)
# - Data to create maps: "mapdata.csv"
#   Source: Karreth, Singh & Stojek (see online appendix for details)
# - Data to create time trend plots of % foreign: "regiondata.csv"
#   Source: Karreth, Singh & Stojek (see online appendix for details)

####################################
## Reproduce the analyses in the article
####################################

# The file "EATI_replication.R" contains the complete R code to reproduce the figures and tables in the article and online appendix.